import { createRouter, createWebHashHistory } from 'vue-router'
import Layout from '@/Layout/index.vue'
import login from '@/views/login/login.vue'
export const constantRoutes: any = [
    {
      path: '/login',
      component: login,
      hidden: true,
      meta: {
        noCache: true
      }
    },
    {
      path: '/404',
      component: () => import('@/views/error/404.vue'),
      hidden: true
    },
    {
      path: '/401',
      component: () => import('@/views/error/401.vue'),
      hidden: true
    },
    {
      path: '/',
      name:'layout',
      component: Layout,
      hidden: true,
      children: []
    }
  ]

const router = createRouter({
  history: createWebHashHistory(),
  routes: constantRoutes,
})
export default router